//
//  HYLPopoverViewController.swift
//  iOSwechat
//
//  Created by apple on 16/3/1.
//  Copyright © 2016年 apple. All rights reserved.
//

import UIKit

class HYLPopoverViewController: UITableViewController {

    private let reuseIdntifier = "reuseIdntifier"
    let data = ["首页", "好友圈", "群微博", "我的微博", "新浪微博"]

    override func viewDidLoad() {
        super.viewDidLoad()

       // 注册
        tableView.registerClass(UITableViewCell.self, forCellReuseIdentifier: reuseIdntifier)
        
    }

    
    override func tableView(tableView: UITableView, numberOfRowsInSection section: Int) -> Int {
        return data.count
    }
    
    override func tableView(tableView: UITableView, cellForRowAtIndexPath indexPath: NSIndexPath) -> UITableViewCell {
        let cell = tableView.dequeueReusableCellWithIdentifier(reuseIdntifier, forIndexPath: indexPath)
        cell.textLabel?.text = data[indexPath.row]
        return cell
    }
}
